<?php

class CommentFormFactory
{
  static public function create()
  {
    $user = sfContext::getInstance()->getUser();
    
    $form = new CommentForm();
    $user->isAuthenticated() or $form->mergeForm(new SessionForm());

    return $form;
  }
}
